<div>
	<div class='row' ng-if='fields && fields.length' ng-repeat='row in fields'>
		<div class='col-xs-{{field.cols || 6}}' ng-repeat='field in row'>
			<div class='form-group group-inline'>
				<label>
					<span class='required' ng-if="field['rule'] && field['rule']['required']"></span>
					{{field.label}}：
				</label>

				<!-- select,text,checkbox,radio,textarea,fileInput,imageInput -->
				<input ng-if="!field.type || field.type == 'text'" type='text' placeholder='{{field.label}}' ng-model = "data[field.name]" class='form-control' name='{{field.name}}'>
				<ng-select ng-if="field.type == 'select'" data-option='field.option' data-data='data[field.name]'></ng-select>
				<!-- #select,text,checkbox,radio,textarea,fileInput,imageInput -->
			</div>
			<div class='help-block'>{{field.help}}</div>
		</div>
	</div>
</div>